<?php

class API_Loader extends Zend_Loader
{
    public static function loadClass($class, $dirs = null)
    {      //echo "|load($class)|"; 
        parent::loadClass($class, $dirs);
        if(is_callable(array($class, 'static_init'),false,$call))
            eval("$call();");
    }

    public static function autoload($class)
    {
        try {
            self::loadClass($class);
            return $class;
        } catch (Exception $e) {
            return false;
        }
    }
}
